<extend name="work/baseuser"/>
<block name="content">
        <table class="layui-table text-center" id="list" lay-filter="list"
               list-url="{:url('/home/order/outorderlists')}"
               edit-url="{:url('/home/order/bugorder')}"
        ></table>
    <!-- end case-content -->
</block>
<block name="script">
    <script type="text/html" id="barDemo">
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete"> <i class="fa fa-trash-o"></i> 订购</a>
    </script>
    <script type="text/javascript">
        layui.use(['carousel', 'jquery', 'element', 'table', 'layer'], function () {
            var carousel = layui.carousel
                , element = layui.element
                , layer = layui.layer
                ,table=layui.table
                , $ = layui.$;
            table.render({
                elem: '#list'
                , url: "{:Url('/home/order/outorderlists')}"
                , page: true
                , limit: 20
                , cols: [[
                    {field: 'order_id', width: 175, title: '订单号', sort: true}
                    , {field: 'c_time', width: 175, title: '下单时间'}
                    , {field: 'price', width: 100, title: '支付价格',align:'right'}
                    , {field: 'status', width: 90, title: '订单状态'}
                    , {field: 'title',  title: '产品包'}
                ]]
            });

            $('.app-header-menuicon').on('click', function () {
                $('.header-down-nav').toggleClass('down-nav')
            })

        });
    </script>
</block>